Add support for raw memory copies of objects