Index setter refactor.

This is needed if a class inheriting switchmanipulator, is overriding the setManipulatorIndex function.