Fixed DeflateSerializer.

Can't use Kryo to write the object. Kryo has already registered a reference ID for the object, so using Kryo again would only write the reference.