core: make imported data types visible when checking types of imported values