Improve code generation

- in ItemSet#transitions, merge transitions from different items on the same symbol
- make code generator include rule names
- make code generator test reference example C parsers