Fixes for Dart 2 runtime errors in Intl tests

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=195335208
diff --git a/test/date_time_format_custom_test.dart b/test/date_time_format_custom_test.dart
index cdcd638..ca1d0ae 100644
--- a/test/date_time_format_custom_test.dart
+++ b/test/date_time_format_custom_test.dart
@@ -14,7 +14,8 @@
 main() {
   var symbols = localSymbols.dateTimeSymbolMap();
   var patterns = localPatterns.dateTimePatternMap();
-  List<String> locales = symbols.keys.toList().take(10).toList();
+  var locales = <String>[];
+  symbols.keys.take(10).forEach(locales.add);
   // Force inclusion of locales that are hard-coded in tests.
   var requiredLocales = ["en_US", "de", "fr", "ja", "el", "de_AT"];
   locales.addAll(requiredLocales);
diff --git a/test/plural_test.dart b/test/plural_test.dart
index 65a5f67..f89f82b 100644
--- a/test/plural_test.dart
+++ b/test/plural_test.dart
@@ -197,7 +197,7 @@
   });
 }
 
-verify(expectedValues, locale, pluralFunction) {
+verify(String expectedValues, String locale, pluralFunction) {
   var lines = expectedValues.split('\n').where((x) => x.isNotEmpty).toList();
   for (var i = 0; i < lines.length; i++) {
     test(lines[i], () {