Only cache attributes for ActiveRecord objects

@hornairs @camilo ActiveRecord objects are currently cached with all internal state.

This instead caches only attributes and embedded associations.