more issues on resolving base decls

handle more type classes