encoding/xml: accept chains of interfaces and pointers

Fixes issue 6556.

R=golang-dev, iant, adg
CC=golang-dev
https://codereview.appspot.com/14747043