Optimizations in GameObject::createCopy.