[BUG FIX] too many query conditions

Bug fix to #515 

I had to modify a few unit tests since I'm changing the constant `TEST_DATA_SIZE`. The real fix is in `realm-jni/src/io_realm_internal_TableQuery.cpp`.

@bmunkholm @emanuelez @cmelchior 

This file does not seem to belong to this PR