i'm stepping through the matching refs to see if the code succeeds with the debugging library loaded. i'm up to pos 2108. there are a lot of matching refs.
the current code accumulates refs that aren't branches and then finds how to get their data after the accumulation. i'm realising it could run a lot faster if it searched fro them when it found them, rather than accumulating them.
