Check raw Type objects, not ResolvableType instances, during isAssignableFrom recursion

Issue: SPR-11522