Fixed padWithZeros on arrayCopy function