Fix major bug in array_cpy