Avoid self reference in ImportScope.

ImportScope now checks before returning new scope that the old scope is not the same as the Import.module. If it is the same it returns the Import.module so a self reference can be avoided.