Misc cleanup to aid Closure compiler.

R=spertus@google.com

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

git-svn-id: http://blockly.googlecode.com/svn/trunk@1373 c400ca83-b69d-9dd7-9705-49c6b8615e23