Debugging in tree-definition logic

Resetting mysteriously flipped looping flags in MySQL stored routines.