rebuild
add "// Generated by" comment to collapse lib files in github diffs
fixes #3: include `type` field in JSON serialisation of AST nodes