Add dependencies to other resolve tasks as well.
Also search for non unique definitions with imports.