BUG-4638: fix union type generation