Add support for coproduct codecs