Move some methods operating on AbstractArrays from array.jl to abstractarray.jl.