nir: Make nir_deref_path_init skip trivial casts