Modify parser to support multiple prototypes per method.

An example of this is added for WorldObject:GetDistance.
Fix logic in parser