Portage/Dependency/Normalize.hs: do part of deduplication work in 'flatten' phase

Speeds up 'xmobar' ebuild generation.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>