Add copy constructor to DomainObject.