make empty_like function for transferring UntypedArrays, change copy() signature to match memcpy