Issue 13847 - CTFE internal error: dottype

https://issues.dlang.org/show_bug.cgi?id=13847

Additionally fixes the diagnostic issue:
https://issues.dlang.org/show_bug.cgi?id=13028