Progress.

Fixes bug when, after rotating a ring, we may have skipped some junctions.
Fix a bug deduping broken rings.