Support autoloading of enumerations
Merge pull request #6206 from wmtan/SupportAutoLoadOfEnums

Support autoloading of enumerations