Detect whether a SpatRaster source has GDAL geolocation arrays (e.g. satellite swath / curvilinear NetCDF) and/or Ground Control Points (GCPs), and report the associated spatial reference and array paths.
When a file has no conventional geotransform but does have a GEOLOCATION metadata domain (or GCPs), rast stores that information on the source and, if the dataset itself has no CRS, applies the geolocation/GCP CRS automatically so that project can use the arrays.