Add some nunjucks compiler optimizations