Fixed iterative copying of arrays. Removed manual boxing. (If you're not using Java7 you should be)