[REG2.066] Issue 13417 - segmentation fault when deduce template type

https://issues.dlang.org/show_bug.cgi?id=13417

The ICE has been caused by the lack of `semantic` call on the argument of `TypeInstance` parameter. It's essentially a bug in `TypeInstance::deduceType`.