### Godot version

v4.0.beta12.mono.official

### System information

Linux 6.1.6-arch1-1

### Issue description

When creating TileSets from code, the TileSet's `add_source(source: TileSetSource, atlas_source_id_override: int = -1)` method is supposed to accept gdscript int (which is a signed 64-bit int), however feeding it with integers above C++ signed int (>2147483647) will result in a failure - in fact the actual return int (which is supposed to be the source_id override) is equal to 0 and not -1 as method description implies should be the case when the source could not be added. 

PS. Why do I need such huge numbers for tileset sources? I'm adding tilesets from a set of config text files and I'm hashing some parameters from it (via String `hash()` method which returns a 32-bit int) to use as a source_id for the tile set source. I will workaround that one way or another, of course, it's only marginally annoying :) 




### Steps to reproduce

```
var tileset : TileSet = TileSet.new()
var tileset_source : TileSetAtlasSource = TileSetAtlasSource.new()
	
var result : int 
	
result = tileset.add_source(tileset_source, 2147483647)
print("Adding source ID 2147483647 (int) -> ", result) # OK for signed int
	
result = tileset.add_source(tileset_source, 2147483648)
print("Adding source ID 2147483648 (signed int +1) -> ", result) # NOK 
```

![image](https://user-images.githubusercontent.com/16452779/212549500-f5fbdf2b-1643-4874-ae49-19908cab55f4.png)


### Minimal reproduction project

N/A
Simple code to reproduce as depicted above. 
ERR_FAIL_COND_V(p_atlas_coords != Vector2i(), false);
	return scenes.has(p_alternative_tile);
}
int TileSetScenesCollectionSource::create_scene_tile(Ref<PackedScene> p_packed_scene, int p_id_override) {
	ERR_FAIL_COND_V_MSG(p_id_override >= 0 && scenes.has(p_id_override), INVALID_TILE_ALTERNATIVE, vformat("Cannot create scene tile. Another scene tile exists with id %d.", p_id_override));
	int new_scene_id = p_id_override >= 0 ? p_id_override : next_scene_id;
	scenes[new_scene_id] = SceneData();
	scenes_ids.push_back(new_scene_id);
	scenes_ids.sort();
	set_scene_tile_scene(new_scene_id, p_packed_scene);
	_compute_next_alternative_id();
	emit_signal(SNAME("changed"));
	return new_scene_id;
}
void TileSetScenesCollectionSource::set_scene_tile_id(int p_id, int p_new_id) {
	ERR_FAIL_COND(p_new_id < 0);
	ERR_FAIL_COND(!has_scene_tile_id(p_id));
	ERR_FAIL_COND(has_scene_tile_id(p_new_id));
	scenes[p_new_id] = SceneData();
	scenes[p_new_id] = scenes[p_id];
	scenes_ids.push_back(p_new_id);
	scenes_ids.sort();
	_compute_next_alternative_id();
	scenes.erase(p_id);
	scenes_ids.erase(p_id);
	emit_signal(SNAME("changed"));
}
void TileSetScenesCollectionSource::set_scene_tile_scene(int p_id, Ref<PackedScene> p_packed_scene) {