Problem: case-sensitive compare on message names

Borks up code generation when we use uppercase in messages as well
as in state machine.

Solution: convert message names to lowercase before using in FSM
code generator (as already done for event names).