Added nested function to update the debug stack with the "DO" flag when
running inside a loop or if statement. Also added argument "DONE" to
strip the flag from the debug stack at the end of a loop or if/elif/else
test block.