pub fn pack_dupes_indexed<'a, I, T>(idata: I) -> (Vec<T>, Vec<usize>)where I: Iterator<Item = &'a T>, T: 'a + Eq + Hash + Clone,
Returns a container with duplicates removed and indices representing the original order