Fixed issue with directive on App state;
I've noticed that almost all components and directives are rendered as component-or-directive type, except if component is not declared it's rendered as component;
Fixed some types (For me would be great to use strict mode one day).