onCompile now compatbile with Nette\Object

[Closes #8], [Ref Kdyby/Events#41]