DI: fixed registration of macros [fixes #23]

Latte in Nette 2.2 doesn't support property access to getters anymore.