go/doc: recursively inspect selector expressions

Also adds a couple of simple tests for doc.Examples.

Fixes issue 4561.

R=golang-dev, dave, rsc
CC=golang-dev
https://codereview.appspot.com/7067048