introduce AstClassifier
ast mapper: support enums, fix field duplicates
map sequences instead of rules