Merge pull request #14 from dart-lang/dart-2

Fix Dart 2 runtime errors in tests