Little example for (de)serializing abstract types with atdgen.