OAK-2077: Improve the resilence of the OrderedIndex for dangling links

added test for '>' query
OAK-2077: Improve the resilence of the OrderedIndex for dangling links

made a utility method public
OAK-2077: Improve the resilence of the OrderedIndex for dangling links

ensured the reset of the index definition
OAK-2077: Improve the resilence of the OrderedIndex for dangling links

minor editing
OAK-2077: Improve the resilence of the OrderedIndex for dangling links

increased visibility of a utility method for reusing it
OAK-2077: Improve the resilence of the OrderedIndex for dangling links

WIP. Switching to trunk to investigate a potential bug