fix some bugs, add tests

argument registers weren't being compiled correctly, mixed up w/ regular
registers. also the code frame state wasn't being reset after input completed
added tests to better catch regressions like these
ideas for how to represent the call tree

for debugging purposes, it will be useful to have a way to visualize
the call tree. here are a few ideas for that.