Properly handle cases where targetType is a System.Type instead of a TypeMirror