nir: Rework gather_info to entirely use deref instructions