Convert enum tag lookup from a map to a generated switch statement.

Also, generate tags for each enumerant by default, and add a notag annotation for disabling the default behavior.