IndexedValue now templated on index type