Added a @reflectable attribute so that dart2js will be informed that an entity relies on mirrors.
Fixed the testing of reflectedType (cannot be a switch statement anymore because of the Type == override).