go/types: don't crash when assigning to undefined variables

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