BUG-5970: do not add value to union hashCode/equals/toString