Fixing three bugs filed against the "writing a transformer" docs.

BUG=
R=nweiz@google.com

Review URL: https://codereview.appspot.com/98300044