Tests and fixes for the parser

This PR contains a few HUnit tests using tasty for the parser. I also fixed most of the issues I encountered while writing the tests, the only test that is still failing is a test for string parsing (which doesn't seem to be implemented fully yet). 

I also fixed a few compile errors that happened after I merged `origin/master`.