Fixed some statement parser bugs, and wrote a whole bunch more tests. Entire codebase now linted.