belongs_to relationships with type specifed as string as now correctly s...

belongs_to relationships that have their type specified as a string were not being included during serialization when the save function was being called.

Serialization now also uses key in relationship metadata instead of defaulting to relationship name