nir: Some builder improvements for derefs
This is three little builder improvements for dealing with derefs. Two of them improve support for 64-bit derefs. The other just improves the code that gets generated by deref lowering so opt_algebraic has to do a bit less work.