fix signals parser

The generating script for the signals generates various bogus and
broken types (see perl-signals-list.h in a configured irssi). This is
a rewrite to fix this.