text/template: type-check chained node as argument
Was just a missing case (literally) in the type checker.

Fixes issue 8473.

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://codereview.appspot.com/142460043