corrected a sub-string assignment with error memory leak

if there is an error with the comma or equal token (including a parser
error), and if the reference is a sub-string assignment, then the done
item on top of the stack containing the rpn item with the sub-string
assignment token needs to be deleted since it was not yet added to the
rpn output list

the memtestn script was modified to run and check all of the tests