Constant folding in computed enum members

Please rename checkConstEnums