Updated instance variable serialization to be compatible with msgpack-jruby.