nir: fix deref comparison where a cast deref gets larger.

This might need more work, but it seems to fix the test I wrote.
10 jobs for !929 with nir-deref-compare-upsize-casts in 9 minutes and 32 seconds (queued for 3 seconds)
latest merge request