Fix using Resource objects as keys in the tres
format
#64812
+3
−0
Merged