Update NS2Dart to Dart r31598.
Fix some bad types in NS2Dart helper code. (Thanks to Regis for pointing this out.)