Fix bug in token tostring.
Added regression test for macro param substitution bug.
Added script for running regression tests.