Correct Syntax Error, Finish TODO

- And formalize ASTNode's toJSON methods.