MODE-2286 Made it easier to use the ModeShape public API for queries
MODE-2286 Corrected processing of LIKE criteria with paths and SNS indexes

There are 2 changes:

1) The engine now internally alters the LIKE expression in a path comparison
to include a same-name-sibling index for all literal segments of the path.
For example, the path `/a/b/c_/d[%]` is converted to `/a[1]/b[1]/c_[1]/d[%]`,
while `/a/%/d[%]` is converted to `/a[1]/%/d[%]`. Obviously any segment that
already has a SNS index (literal or wildcard) is left alone.

2) When extracting from each row the left-hand values for the LIKE comparison,
same-name-sibling indexes are added to all segments.

These changes replace a slightly different technique that did not do #1 but
for #2 extracted the idiomatic path (with SNS indexes only where required)
and a second value with SNS indexes for all segments. This worked when the
LIKE expression specified SNS indexes (wildcard or literals) for all segments,
or when the LIKE expression had no SNS indexes at all. But this would not work
when the LIKE expression contained some segments with and others without SNS
indexes (e.g., `/a/b/c[%]`).

Several new tests validate the behavior, and no regressions were found.
Merge pull request #1226 from rhauch/mode-2286

MODE-2286 Corrects the processing of LIKE criteria with paths and SNS indexes