Added support for templated constructors to components