bugfix: different segments got extracted between different calls to SegmentExtractor

The slice sorting criteria was based on the slices' pointers (if overlap
is the same), which are different for different runs. Fixed by sorting
according to slice hash.
bugfix: ISI test in MinimalImpactTEDWriter did not consider section offset