Fix units for line_density_eq_w and conditionally load halos