fix NPE on ast output for empty BlockStatement
fix tmpvar/lvar offsets
finally executing that big ol' loop
initial work on FunctionDecl