Support direct iteration in cursors.