make transmute_copy use memcpy, and inline it