PDI - 13204 - RowMeta indexOfValue method works in O(n) time

Applied original MC path and additional fixes to this path.
This is ambiguous commits and possibly can bring some regressions.
See commits descriptions and junit tests results.