[REG2.066a] Issue 13127 - Cannot deduce function with int[][] argument and "in" parameter

https://issues.dlang.org/show_bug.cgi?id=13127

Now this is an improvement of pull #3284 with exhaustive test case.
By adjusting top const, IFTI and inout matching now deduce `T` to `char[]` in all cases.