t_cocoa_generator: refine cocoa code generator

- refine Cocoa code generator
- add an option to declare a struct instance to be immutable.
- code gen a [toDict] for each struct.