Added fix to isDirty and belongsTo-relationships, where isDirty was not correctly set with repeated sets or setting to null value.