fix #355 compare tuples instead of list and tuples