Lots of debugging changes to use Zed's Debug Macros
Added another test case
Various changes, mainly to parsing, debugging, and handling of memory.
Fixed problem with closures