convert toMap usage to parser method calls

Was creating Map for each path element!  Uses new parser.getRuleIndex() interface.