Indexes should not be compared only by keys.

Compounded indexes with the same keys, but with different order values,
should be added without condering itself as a duplicate.

[fixes #3348]
Update changelog