nogo: instantiate type info for generic types when running under Go >=1.18 (#3212)

This mirrors what golang.org/x/tools/go/packages does when loading packages.

Should fix #3211 (and probably #3164 as well).
15 files changed