tests for #439
fix #439
tests for #434
tests for #436
fix #436
begin work on #438
Remove redundant members, make everything static
call super ser$$/deser$$
get common type decls from unit
fix for serializable types #438
some refactoring
move serialization stuff to new helper class #438
call methods in new helper class #438
generate a bit more compact code
npe
remove comment
call deser, not ser
reminder for after merge