Use GetValue() for TEnumConstants.

Re: [root.git 21/54] Do not force the creation of a TApplication; bad for rootcling.