fix handling of cursor.  do_limit() was sometimes storing a cursor for a sequence that had been depleted.
fix handling of cursor.  do_limit() was sometimes storing a cursor for a sequence that had been depleted.

zumero/Elmo,zumero/Elmo