Reverted automatic class discovery for Kryo registration