Fixed bug where variables at end of input were not being pushed onto the
postfix expression.
Tidied up some code (convert() still pretty messy).
Added more test cases, this time more methodically.