Fix record loader

If a hasMany relationship has an inverse belongsTo, then the child
records must be saved after adding them to the hasMany array.