When comparing indexes, take their truncation into account
Merge pull request #290 from iarna/keylength-keydiff

When comparing indexes, take their truncation into account