Make it possible to supply a Kryo to KryoSerialization