nir: Handle casts in nir_opt_copy_prop_vars
We used to miss array derefs of vectors if trivial casts were applied.
I think non-trivial casts should be handled already (lookup_entry_for_deref should fail for those, right?)
Closes #10481 (closed)
Edited by Friedrich Vock