FIX 12661: [REG2.066a] std.regex with -debug causes linker errors

https://issues.dlang.org/show_bug.cgi?id=12661

I have no idea what is the actual problem of regression.
This pull is a minimum workaround which removes an inference mismatch from std.range.SortedRange.