Update support,rb to handle cusom serializers

Write value that model returns to cache instead of supplied value. This way, if a custom serializer changes the type of the object, the returned value from the cache will match.