A first attempt at fixing #100 (method dispatcher duplicates)

Contrary to the comment, I haven't looked at performance impact. I expect almost none (that stuff is run once per parser instance, no?). Also don't know why a PR wasn't sent a while ago for this. See also #106.