Fix incorrect 'this' in Cursor __iterator

Test included.