grc: fix port type cache for empty types