New string tokenizer

This bit us in the butt last time, but it will help for next time.  Also, I made a crude little substitute for list comprehension.  Lastly, I made a very handy convertTo function that will totally fix that string<->int mess.  Nothing is documented, though, because real men write LaTeX directly.