fix Issue 11518 - DMD segfault on multiple template match

Incomplete `specType`, like as (T : A!T), should not be used during determination of template partial specialization order.