TemplateFactory: getting services by getService()

Fixed support for Nette Framework v2.1