Add/remove implied dep on dedupe targets when sorting.

This ensures that dedupe targets will be processed *after* dependencies
that point to them.
2.2.0