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