Add invalid syntax tests for $or operator

Add array comparison tests and create indexes for documents
Abort query when compound operator does not have an argument of NSArray
Abort query when compound operator Array does not only contain dictionaries
Bail from query when argument dictionary to operator is empty
Add $lt and $gt tests
Add an array compare test
Add $eq tests

Add $eq tests and logic to abort query when test syntax is invalid