Fix Instance::resolve() incorrectly returning specialized instances
#67662
+182
−17
Instance::resolve() incorrectly returning specialized instances
#67662