[GHC] #9763: Implement Foldable methods for Array directly