Copy array by value, not reference