errors: use `determineSpecificType` in more error messages
Before it would have say something like Expected a … to be returned for the "…" from the function but got an instance of String.
, and with this PR it would say the more useful and more correct Expected a … to be returned for the "…" from the function but got type string ('the input string')
.