Added option to use a custom Kryo initialiser.