encoding/xml: add InputOffset method to Decoder

Among other things, this allows users to match the decoded
pieces with the original XML, which can be necessary for
implementing standards like XML signatures.

Fixes issue 8484.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/122960043