Generate additional desc_signature node for template

We need to render templates on two lines but desc_signature doesn't permit multiple lines. So add two desc_signature nodes for templates, one for template <...> part and another for the rest.