Make code generation around types a bit saner.