Change memcpy, memmove, and memset to pure

At least, changing `memcpy` is ncessary for pure `std.array.Appender`.