fix a compiler front-end performance bug

This was causing the lowering pass to be run twice on method definitions,
which takes, well, twice as long. This is really embarrassing, but
I'm going to commit it anyway.