Encoded associations

To avoid marshalling errors when writing and reading to and from the cache w/ ActiveRecord objects, encode and decode them. This affects index and association caches but not method caching.