Fixed error with bounds when copying array (was previously losing the last element)