GetDAG duplicate block fix.

GetDAG didnt properly handle DAGs with the same block appearing twice in its links, now it does.
Yeah, the subtlety of this function seems to be to culprit for this bug.

(Duplicate links implies duplicate keys right? I don't recall how bitswap handles requests with duplicate keys. Hmm)