Split compiler pass so the listener is defined prior to the event handler.
Merge pull request #6 from westinpigott/#7

Split compiler pass so the listener is defined prior to the event handle...