fix compilation warnings reported by dart2js
Merge pull request #1215 from devoncarew/devoncarew_fix_nits

fix compilation warnings reported by dart2js