is this ever the case that this is a string? on line 443 we convert the value to an array to have it consistent.

i think the best would be to loop over the strings and for each check if its a uuid then try to get by identifier, otherwise get by path, and aggregate the results in order.