Minor refactoring in copy array primops: