Constant folding in computed enum members

Seems like all you're getting from introducing a helper function is a nicer name - it's a little unnecessary, but I don't mind it all that much.