Use IndexedType::operator==() instead of comparing .index()

Authored by arichardson on Feb 14 2016, 3:59 PM.