fast path for object copy and array copy