Improve the error message when module and datatype names overlap.

This only affects ones that are in different scopes, which is not all
that common.