compiler: traverse types of constant expressions

We forgot to ever traverse types of constant expressions.  This rarely
makes a difference--evidently, since nobody noticed--but it does
matter when we inline constant expressions: we need to ensure that the
type is visible to the importing code.

Change-Id: Idd94374d58327658a0fa8305dd675814d2ea1882
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194317
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2 files changed