go.tools/go/types: faster scopes, cleanups around method lookups

R=adonovan
CC=golang-dev
https://golang.org/cl/11787043
10 files changed