OAK-2056: Optimize orderings by date fields

Adding scalabitily benchmark for measuring any potential code change

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1644863 13f79535-47bb-0310-9956-ffa450edef68
Merge branch 'upstream-trunk' into OAK-2056
OAK-2056: Optimize orderings by date fields

Covered PropertyValueState.comapreTo() with a unit test in case of dates
OAK-2056: Optimize orderings by date fields

Compared literals when possible in case of dates