Add code to generate serialisation decoders.