perf(mirrors): cache reflected type hack

@blois Pete, is this type of caching safe? It makes a significant performance difference (~30%) in `DynamicInjector` in dart2js.