mirrors.dart : Type can no longer be used in a switch statement

https://code.google.com/p/dart/issues/detail?id=15525