MAINT: replace bytewise copy with memcpy

memcpy takes care of unaligned memory and is inlined by the compiler,
there is no need for own code.
Merge pull request #5169 from juliantaylor/pyobjcopy-simplification

MAINT: replace bytewise copy with memcpy