Fix (de)serialization of Curator compression

Was attempting to (de)serialize a CompressionProvider instead of the
CompressionCodec that supplied it.