BUG: pprint_thing mishandles sets GH3294

closes #3294