Fix the enum serialization issue when explicit value is assigned to some symbols.