fix Issue 10067 - Recursive template instantiation
Merge pull request #2026 from 9rnsr/fix10067

[REG2.063a] Issue 10067 - Recursive template instantation