OAK-1965: Support for constraints like: foo = 'X' OR bar = 'Y'

Simplify the LiteralImpl string representation for STRING and LONG
values types that can be correctly parsed without a cast().

Add better equals() and hashCode() methods to LiteralImpl and
BindVariableValueImpl to make detecting duplicates easier/faster.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1610500 13f79535-47bb-0310-9956-ffa450edef68
OAK-1965: Support for constraints like: foo = 'X' OR bar = 'Y'

Improved simplification of IN constraints.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1610508 13f79535-47bb-0310-9956-ffa450edef68