This compensates for a change in commit bb3f446186 that made the possible-domains function more permissive (possibly returning results that are inconsistent with the expected type). Closes PR 14889
bb3f446186