Correctly clone arrays.