Replaced usage of MaterializedIndex with index in several internal applications. Closes #2424.