goprotobuf: Add tests for the Marshaler interface during marshaling.

LGTM=r
R=r
CC=golang-codereviews
https://codereview.appspot.com/87130044
1 file changed