Fix data cache on model for associations, fixes #248