Changed the InstanceReference to look for interfaces based on type if it is a transparent proxy.