nir: add deref lowering sanity checking