First version with generation support for signatures.

Does not yet work because of the many possible template options. D:
Fixing the generation code. Still need a better formatting and some constructor naming.

Also, we try to generate signals for all sorts defined or partially defined in a file, be it in a sorts snippet or in a template/template with constructor.