Querying RealmResults with where() returns a query object but resolving
field name to column index throwed an exception since it didn't cast correctly.
Subquerying link queries.
Update RealmQuery.java
Update due to PR feedback
Merge branch 'kg-bugfix-incorrect-cast' of github.com:realm/realm-java into kg-bugfix-incorrect-cast
Querying a RealmResults with zero objects must give zero objects.
Merge branch 'master' of github.com:realm/realm-java into kg-bugfix-incorrect-cast

Conflicts:
	realm/src/androidTest/java/io/realm/RealmResultsTest.java
Merge pull request #599 from realm/kg-bugfix-incorrect-cast

Subquerying RealmResults