Added a 'clone' macro for flat object cloning using memcpy.