Fix merging of messages on a single bus.
Validate messagess when generating code.
Merge signals properly in generated code.
Fix state handler automatic setting.