Make ambiguous reference error message a bit more precise