Fix indexing of datasets: convert lists to tuples