### Godot version

v4.1.dev.custom_build.a7276f1ce

### System information

Win10, AMD 2600, GeForce GTX 1060, Vulkan API 1.3.205

### Issue description

I can't get correct color data from an array of source_color type.
The color data is saved as **Color** in the file:
`shader_parameter/palette = [Color (1, 0, 0, 1), Color (0, 1, 0, 1), Color (0, 0, 1, 1)]`
Shouldn't it be saved as PackedColorArray?


### Steps to reproduce

1.Declare an array of source_color type.
2.Set colors.

### Minimal reproduction project

[shadertest.zip](https://github.com/godotengine/godot/files/11246504/shadertest.zip)

}
		code += "	uv2_power_normal/=dot(uv2_power_normal,vec3(1.0));\n";
		code += "	uv2_triplanar_pos *= vec3(1.0,-1.0, 1.0);\n";
	}
	if (grow_enabled) {
		code += "	VERTEX+=NORMAL*grow;\n";
	}
	code += "}\n";
	code += "\n\n";
	if (flags[FLAG_ALBEDO_TEXTURE_MSDF]) {
		code += "float msdf_median(float r, float g, float b, float a) {\n";
		code += "	return min(max(min(r, g), min(max(r, g), b)), a);\n";
		code += "}\n";
	}
	code += "\n\n";
	if (flags[FLAG_UV1_USE_TRIPLANAR] || flags[FLAG_UV2_USE_TRIPLANAR]) {
		code += "vec4 triplanar_texture(sampler2D p_sampler,vec3 p_weights,vec3 p_triplanar_pos) {\n";
		code += "	vec4 samp=vec4(0.0);\n";
		code += "	samp+= texture(p_sampler,p_triplanar_pos.xy) * p_weights.z;\n";
		code += "	samp+= texture(p_sampler,p_triplanar_pos.xz) * p_weights.y;\n";
		code += "	samp+= texture(p_sampler,p_triplanar_pos.zy * vec2(-1.0,1.0)) * p_weights.x;\n";
		code += "	return samp;\n";
		code += "}\n";
	}
	code += "\n\n";
	code += "void fragment() {\n";
	if (!flags[FLAG_UV1_USE_TRIPLANAR]) {
		code += "	vec2 base_uv = UV;\n";
	}
	if ((features[FEATURE_DETAIL] && detail_uv == DETAIL_UV_2) || (features[FEATURE_AMBIENT_OCCLUSION] && flags[FLAG_AO_ON_UV2]) || (features[FEATURE_EMISSION] && flags[FLAG_EMISSION_ON_UV2])) {