try subtypes when static not found on curtype (close #1916) was introduce by #1391