Correctly handle tuples in retrieve_results.

* In retrieve_results, parameters which are tuples or lists are now
  correctly handled.