Min twig1.12

Retrying pull request for issue #1, hopefully without unexpected side-effects this time.