add uci.cursor() support based on a patch by CyrusFF