Added support for Foo::$onSomething event methods [closes #2]