Add assertion for expected data hash when updating a record
Serialize id of belongsTo relationship via serializeId
Merge pull request #741 from pangratz/fix/serialize_ids

Serialize id of belongsTo relationship via serializeId