Release twig memory through the implementation of twig->purge
Correct twig->purge call so that elements are not purged to soon
Correct twig->purge call so that elements are not purged to soon (missing a semi-colon in one of the purges wrt to previous commit)