Extensions to cursor class - added first attempt at 'visitor' function
taking a block.
Extended the tests for cursor.