BUG-4638: fix union type generation

No match.