Fixes the dirtyness of the filterIt template. Refs #351.
Merge pull request #363 from gradha/pr_fixes_filterIt_dirtyness

Fixes the dirtyness of the filterIt template. Refs #351.