SI-8890 handle reference to overload with error

We must report the ambiguity error to avoid a stack overflow.

TODO: should we simply always report? The test suite passes,
with the added test file reporting a valid second error.

review by @lrytz, cc @dragos