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

_set_error(vformat(RTR("Unknown array size is forbidden in that context.")));
			return ERR_PARSE_ERROR;
		}
		if (r_unknown_size != nullptr) {
			*r_unknown_size = true;
		}
	} else {
		int array_size = 0;
		if (!tk.is_integer_constant() || ((int)tk.constant) <= 0) {
			_set_tkpos(pos);
			Node *n = _parse_and_reduce_expression(p_block, p_function_info);
			if (n) {
				if (n->type == Node::NODE_TYPE_VARIABLE) {
					VariableNode *vn = static_cast<VariableNode *>(n);
					if (vn) {
						ConstantNode::Value v;
						DataType data_type;
						bool is_const = false;
						_find_identifier(p_block, false, p_function_info, vn->name, &data_type, nullptr, &is_const, nullptr, nullptr, &v);
						if (is_const) {
							if (data_type == TYPE_INT) {
								int32_t value = v.sint;
								if (value > 0) {
									array_size = value;
								}
							} else if (data_type == TYPE_UINT) {
								uint32_t value = v.uint;
								if (value > 0U) {
									array_size = value;
								}