glsl_to_nir fixes for native_integers=false
Without these changes, the native_integers=false case is completely broken.
Also required for a working backend is a nir_lower_bool_to_float pass.
One concern is @jekstrand mentioned the first patch might cause issues with some NIR passes but it seems fine with GLES2.