Replaced CreateHashKey with CreateEntityKey
Fixed adding of owned entities if the property type was a base class of the instance type
GetEntitySetName now also works if the type of the entity is in a set of the base type