Make CLASS-OF handle both target instances and bridge instances.