Reverted array copying to be JDK 5 compliant.