[GHC] #7899: Strange behavior of -ddump-minimal-imports