Fixes line numbers for inherits statement.

The line number of the following token was being saved in the AST.
More work in progress on AST rewriting.

Adds logging to map() parent() method and cloneWithParent()
methods.  Fixes some bugs in establishing context for
identifierresolution.