Add toString from discriminator codec