cmd/gc: fix 'internal error: typename ideal bool'

Fixes issue 6298.

R=ken2
CC=golang-dev
https://codereview.appspot.com/13624043