templateManager: frame being applied to should be on the stack before execution
tags.anchor: added logging
test.xml: updated test case
Merge branch 'template-recursion-fix'