Compiler: Buffer output

```
--lextest on 67MB
lexer.result.length        9s
lexer.dumpResult().length 10s
PR                        12s
master                    30s
```