RestApi: Improved integration with Nette 2.2.x