At the moment we are serializing objects with JSON which is both verbose and (somewhat) slow. Add support for <https://github.com/andyleap/gencode> serialization.