fixing sideloading of nested associations

A fix for #492