Updated AST, parser and related tests to use symbols instead of strings for id and type_id