```
The arg type check error doesn't list which arg (position or name) failed. Fix that.
```
Backport of [[https://github.com/bitcoin/bitcoin/pull/26929 | core#26929]].
Due to out-of-order backports some tests have to be updated to account for the new error message.