### Godot version

4.1.3

### System information

Windows 10

### Issue description

E 0:00:47:0705   Message.gd:46 @ from_raw(): Class 'FileAccess' or its base class cannot be instantiated.
  <Erreur C++>   Condition "!ti->creation_func" is true. Returning: nullptr
  <Source C++>   core/object/class_db.cpp:341 @ instantiate()
  <Pile des appels>Message.gd:46 @ from_raw()
                 WebRTCClient.gd:30 @ _process()

`from_raw() is a byte_to_var_with_objects() function`

### Steps to reproduce

try to decode an array containing a FileAccess object among many other vars

byte_to_var_with_objects([FileAccess.open(path, FileAccess.READ), a, b, c, d, ...])

### Minimal reproduction project

N/A
if (np.is_absolute()) {
					np_flags |= 1;
				}
				encode_uint32(np_flags, buf + 8);
				buf += 12;
			}
			r_len += 12;
			int total = np.get_name_count() + np.get_subname_count();
			for (int i = 0; i < total; i++) {
				String str;
				if (i < np.get_name_count()) {
					str = np.get_name(i);
				} else {
					str = np.get_subname(i - np.get_name_count());
				}
				CharString utf8 = str.utf8();
				int pad = 0;
				if (utf8.length() % 4) {
					pad = 4 - utf8.length() % 4;
				}
				if (buf) {
					encode_uint32(utf8.length(), buf);
					buf += 4;
					memcpy(buf, utf8.get_data(), utf8.length());
					buf += pad + utf8.length();
				}
				r_len += 4 + utf8.length() + pad;
			}
		} break;
		case Variant::STRING: