Use a Symbol type to make AST internal references more typesafe
Simplify interface to extractAttr