Cheap hack to get type info of declared idents