Use list values as an iterator if they are an appropriate object.