nir: don't split vars which have casts.
This stop var splitting from occuring if there are casts derefs leading from the variables.
Also some tests.
This stop var splitting from occuring if there are casts derefs leading from the variables.
Also some tests.