Fix 776 allow dispatcher to compile new definition in ambiguous calls

Fixes #776 
There is still a bug in resolve_overload in `numba/typing/templates.py` that will be fixed in https://github.com/numba/numba/pull/772