Implement multiselect cursors (fixes #296)