### 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)

}
	if (flags[FLAG_UV1_USE_TRIPLANAR] || flags[FLAG_UV2_USE_TRIPLANAR]) {
		
		code += "	TANGENT = vec3(0.0,0.0,-1.0) * abs(NORMAL.x);\n";
		code += "	TANGENT+= vec3(1.0,0.0,0.0) * abs(NORMAL.y);\n";
		code += "	TANGENT+= vec3(1.0,0.0,0.0) * abs(NORMAL.z);\n";
		code += "	TANGENT = normalize(TANGENT);\n";
		code += "	BINORMAL = vec3(0.0,1.0,0.0) * abs(NORMAL.x);\n";
		code += "	BINORMAL+= vec3(0.0,0.0,-1.0) * abs(NORMAL.y);\n";
		code += "	BINORMAL+= vec3(0.0,1.0,0.0) * abs(NORMAL.z);\n";
		code += "	BINORMAL = normalize(BINORMAL);\n";
	}
	if (flags[FLAG_UV1_USE_TRIPLANAR]) {
		if (flags[FLAG_UV1_USE_WORLD_TRIPLANAR]) {
			code += "	uv1_power_normal=pow(abs(mat3(MODEL_MATRIX) * NORMAL),vec3(uv1_blend_sharpness));\n";
			code += "	uv1_triplanar_pos = (MODEL_MATRIX * vec4(VERTEX, 1.0f)).xyz * uv1_scale + uv1_offset;\n";
		} else {
			code += "	uv1_power_normal=pow(abs(NORMAL),vec3(uv1_blend_sharpness));\n";
			code += "	uv1_triplanar_pos = VERTEX * uv1_scale + uv1_offset;\n";
		}
		code += "	uv1_power_normal/=dot(uv1_power_normal,vec3(1.0));\n";
		code += "	uv1_triplanar_pos *= vec3(1.0,-1.0, 1.0);\n";
	}
	if (flags[FLAG_UV2_USE_TRIPLANAR]) {
		if (flags[FLAG_UV2_USE_WORLD_TRIPLANAR]) {
			code += "	uv2_power_normal=pow(abs(mat3(MODEL_MATRIX) * NORMAL), vec3(uv2_blend_sharpness));\n";
			code += "	uv2_triplanar_pos = (MODEL_MATRIX * vec4(VERTEX, 1.0f)).xyz * uv2_scale + uv2_offset;\n";
		} else {
			code += "	uv2_power_normal=pow(abs(NORMAL), vec3(uv2_blend_sharpness));\n";
			code += "	uv2_triplanar_pos = VERTEX * uv2_scale + uv2_offset;\n";