ds_is_in_list: properly pass -1 for all sets

Closes #389

(cherry picked from commit 3729badaf9f23a37f37962a04306b7b7c843f200)