Fixed linking of generated types - generated types are templates now, which allows to define static constant member in headers avoiding linking errors