Redundanct `import foo` detected

Can now detect the following pairs of redundant imports:

import foo
import foo as bar

import foo as bar
import bar

All modules and functions that are overwritten as a result of these
imports are overwritten as well.