nir: Add a couple of iand/ior optimizations