fix subtle bug with BAM chunk pruning using linear index, fixes #276.
that one led me quite a merry chase.