Issue 9946 - A UFCS disallowed in dynamic array allocation

http://d.puremagic.com/issues/show_bug.cgi?id=9946

`TypeQualified::idents` may have both `Identifier` and `TemplateInstance` objects. It should be treated correctly, as like as `Dsymbol::searchX` and `TypeQualified::resolveHelper`.