Better support for Jinja strict mode, fixes #5