CRUNCH-163 Correct handling of same input in unions