Reproduction steps:
1. Open the attached "repro_IN-36180EnumSerialization.zip" project
2. Open the “Assets/Scenes/SampleScene” Scene
4. Open the Console window and observe the error messages
Expected result: No error messages are produced
Actual result: Unsupported enum type error messages are produced
Reproducible with: 2020.3.46f1, 2021.3.22f1, 2022.2.12f1, 2023.1.0b10, 2023.2.0a8
Reproducible on: Windows 10
Note: reproducible with any access modifier