Implement nullSafeSet (before, a PersistentEnum could not be saved).