you're right!  took me a second to see.  thanks for catching this.

as a note: the way i designed it, it'd be a little more conceptually clean to add push|pop functions for id=0 and remove those for id=10 (or to add functions for id=0, and change MAX_LAYER_PUSH_POP_FUNCTIONS to 11).  but it's fine.  :)