fix a couple potential bugs handling method definitions of qualified names (a.b)
some performance tweaks to the parser