fix for embedded records not being loaded when their parent is sideloaded
Merged in test from #674