Fixed compatibility with Nette 2.0

This is NOT intended to be merged into master but into new branch `nette-2.0` and later released as v1.0.0 (after I test it).

Or you can grant me push privileges and I will do it all myself. ;-)