Some Grib_pi minor improvements