[Git][ghc/ghc][wip/jeltsch/more-efficient-home-unit-imports-finding] Resolve two bugs and improve debug info generation