Implemented Extend to work on inData of type CollOfIndices.