fix qualname calculation crash for c(p)def functions/classes