The cache key should use the value of the object

Fix so that when serializing with Marshal the value of the object is
used instead of the object. Otherwise the cache_key will always be
unique.
Actually we need this change, but we need to update the existing tests with the changed SHA1 hash - just copying it back from the failures output. @alksl could you please update this PR with those changes? :heart: