Fixed important bug in sets.py

The get_items() method was not properly returning items in sets. I wrote
a unit test to identify the problem and fixed the problem in this
branch.