Add better tests for querying RLMArrays from queries