render: shader: Decouple uniform serialization with uniform setting.