Convert `Cursor` to prototypical object.

See #361.