CleanupUniformBufferCode

Convert generated UniformBuffer code and references into something the shader compilers can use.