Added support for discriminated unions.