GetDAG duplicate block fix.

GetDAG didnt properly handle DAGs with the same block appearing twice in its links, now it does.
function changed, update godoc comment?  (Also make it lint friendly `FindLinks ...`