add a directive to disable SwitchTransform

SwitchTransform is unable to detect all cases of duplicate values, which
result in errors at compile time in the generated code.