Enable generators to be passed to `md.compute_distances`

This is useful so that `md.compute_distances(t, itertools.combinations(range(n_atoms), 2))` works.