Enhance Entity::Clone function with changeType and cloneName parameters.