Vectorization as preprocessing
Refactoring of the entire visiting process:
- Have a dry run that collects information
- Directly construct large matrices during tree visiting
- Allow code generation for terminals to also handle indexing into the terminal!