Changed Serializer to register automatically in Kryo all derived class from an ancestor type.