Merge pull request #3 from dart-lang/dart2

Fixes for Dart 2 runtime failures