nir: add glsl_double_type() helper