Clean up Cursor implementation, implement Cursor.toArray.
Implement Cursor.count.
Merge pull request #211 from FuegoFro/cursor_rework_and_fill_out

Rework cursor and implement .toArray() and .count()