fix for lazy type detection on resources that are first loaded as superclass types