Added support for single number cursors
Allowed falsy cursors and added server side cursor validation