Improved the speed of parsing enum names in EnumContract.