Modifying format of type discriminator in generated code.