PixelShaderGen: Cleanups and fixes for tev combiners.

Fixes issue 4674.