improve parseCrossIndexes
fix randomCrossIndexesString
fix query by crossIndex off-by-one bug