Override Jinja2 Template class to make {% include %} work again

Fixes #1908.