don't print preamble during listen when --json
update ASTPrinter
forbid typeof() expressions for endpoint types