Constant folding in computed enum members

cast to identifier shoudln't be necessary.