[iOS] Address review comments for arrays in query