Only error on ambiguous imported function calls, not on the imports themselves.

Fixes #788.