Fix dirty tracking for embedded belongsTo relationships

Similar to #260 but for one-to-one relationships.