Bugfixes for {% for %} and more tests.