Added capability to override script classes in objects that instance prefabs.