We don't yet support any operations which change the size of the array,
such as push or append. For operations like foldl and foldr,
use the toFlatArray function, then the corresponding functions
on Array.Array.