Changed kryo registration using hashCode of registered class