[REG2.062] Issue 9639 - Recursive template instanciation segfault dmd

https://d.puremagic.com/issues/show_bug.cgi?id=9639

Caused by: fe7583317aefdc63e5dc233a627296c5df5594e3