Automata enhancements

This pull request has the NameAutomata enhanced for enums (standard, FlagsAttribute, EnumValuesAttribute are all covered).

(I haven't had the chance to look at anonymous classes yet, hope to get a chance soon.)