Base classes / interfaces may be template instantiations too.

Fixes: https://issues.dlang.org/show_bug.cgi?id=13448