Fix data cache on model for associations, fixes #248

I'm not sure I got this one right. It should fix #248 "without using `@parent.attributes`".