Fix segfault in array copy primops on 32-bit