[REG2.061] Issue 11225 - Module dependency cycle causes import statements inside typeof() expressions inside templates to fail

http://d.puremagic.com/issues/show_bug.cgi?id=11225

The bug was introduced by the commit:
https://github.com/D-Programming-Language/dmd/commit/4633b1336ba0aca1c260bcfd87fabb24f0d06692