fix Issue 11553 - dmd segfault with recursive template