go/types: set type of lhs ident in type switch guards

(bug fix)

R=adonovan
CC=golang-dev
https://codereview.appspot.com/7098059