Fixes for Dart 0.8.7

 - quit using deprecated mirrors APIs.
 - remove casts that analyzer now identifies as unneeded.