Fixed compiler errors in genParserReference and genParserOriginSlice functions