Fix checking of (list ...) w/ union expected type

Closes PR 14758
Closes PR 14747