GetDAG duplicate block fix.

GetDAG didnt properly handle DAGs with the same block appearing twice in its links, now it does.
k