template: regularize the handling of interfaces, pointers, and methods when looking up names. Fixes issue 764.
template: regularize the handling of interfaces, pointers, and
methods when looking up names.
Fixes issue 764.

R=rsc
CC=golang-dev
http://codereview.appspot.com/1170041

gnanderson/go,pombredanne/go-deleteme,pombredanne/go-deleteme,tianon/debian-golang,dsriram/golang,tianon/debian-golang,ssrl/go,tv42/old-go,h8liu/golang,apparentlymart/golang,tv42/old-go,tianon/debian-golang,h8liu/golang,bdwalton/debian-golang,apparentlymart/golang,nightlyone/golang,gnanderson/go,ssrl/go,ssrl/go,tv42/old-go,tianon/debian-golang,bdwalton/debian-golang,bdwalton/debian-golang,tianon/debian-golang,nightlyone/golang,nightlyone/golang,h8liu/golang,nightlyone/golang,pombredanne/go-deleteme,dsriram/golang,tv42/old-go,dsriram/golang,bdwalton/debian-golang,apparentlymart/golang,apparentlymart/golang,nightlyone/golang,dsriram/golang,apparentlymart/golang,gnanderson/go,gnanderson/go,gnanderson/go,ssrl/go,h8liu/golang,pombredanne/go-deleteme,h8liu/golang,tianon/debian-golang,h8liu/golang,tianon/debian-golang,gnanderson/go,tv42/old-go,bdwalton/debian-golang,h8liu/golang,ssrl/go,gnanderson/go,tv42/old-go,apparentlymart/golang,tianon/debian-golang,bdwalton/debian-golang,pombredanne/go-deleteme,apparentlymart/golang,dsriram/golang,dsriram/golang,nightlyone/golang,bdwalton/debian-golang,dsriram/golang,pombredanne/go-deleteme,ssrl/go,nightlyone/golang,ssrl/go,bdwalton/debian-golang,tv42/old-go,pombredanne/go-deleteme