Bug fix: with statement was not being correctly parsed at the top level of a script. Other bugs have become apparent, I am back in parser-bug-fixing mode.