Use memcpy in the generated code for append expressions