started implementing grammar for message definitions
fixed bug in recognising array-types