fix set/frozenset as values argument for Connection.select method

Fix value type detection for sequence objects.
Tested on python2 and python3.