improved support for writing shaders' default_params.