Miscellaneous fixes.

I was just poking around the codebase and made some minor cleanups. I also tweaked the AST reader so that it now accepts the ASTs produced by Esprima.