Add support for unions to auto coproduct codec builders