Check unions for identityref types