Add support for cursor.rewind. Closes #131