Added a -mapWithIndex: method.