Fixes for Dart 1.0 and Mirrors API changes