Engine: added failing test for onCompile
onCompile now compatbile with Nette\Object

See https://github.com/Kdyby/Events/issues/41
Merge pull request #9 from fprochazka/bug/oncompile-traversable

onCompile now compatbile with Nette\Object