fixed some inherited methods that assumed a get ast returned
a functionExpression
Use the library resolve method to lookup identifiers that had not been
resolved by local definitions. Also handles top level variables that
should be in scope before declaration.
added a TODO