Fix for loading embedded records who's parents are sideloaded

Could possibly fix #703 #704 and #674. Also inclues the failing test from #679 but uses a different solution that also works for `hasMany`.