glsl: mediump - builtin fixes and lower temporaries to 16 bits
Most commits are cleanups and cosmetic improvements.
Some builtin functions have precision qualifiers on parameter or return types that must be honored. This MR fixes that.
The last commit adds type lowering for mediump temporaries. This is needed for getting 16-bit phis in NIR.