Remove warnings and errors discovered by dart2js in SDK 0.6.5

R=dgrove@google.com

Review URL: https://chromiumcodereview.appspot.com//19308005