Correctly cleanup the stack in table_to_array.

  This fixes #31, or closes #31.

  The issue is we leaked two stack-entries every run, and now
 we clean them up.  Popping two items off the stack was better
 than just blindly resetting things.