- changed serialization code generation to be non static and work for polymorphic types
- fixed generation of ArrayList types