text/template: make the escapers for HTML etc. handle pointers correctly
Apply the same rules for argument evaluation and indirection that are
used by the regular evaluator.

Fixes issue 5802

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/13257043