raise exception for iterative operations on RqlQuery

attempt to fix #1503