Increase XCodecWindow collision robustness.

Previously it would be possible for a hash to be in the window twice
in unusual circumstances.  Namely if a hash is reused over the
lifespan of a window within a single stream.
Expound.
Refactor out a find_reference() method.
Don't add backrefs to the refmap.