Use similar instead of Array in array.jl
Merge pull request #6182 from JuliaLang/anj/similar

Use similar instead of Array in array.jl