Fix ``pytest.mark.parametrize`` when the argvalues is an iterator.