improve performance of vcat and hcat of numbers of different types

helps #4467