bin_on_index should thread over extra dims, using the same index.
