add test case for variable include tag in a loop
fix include tag: don't store variable value

This fixes the bug reported in #1495 (comments).
Merge pull request #1726 from maul-esel/include-fix

fix variable include tag in a loop