Allow inspection of the typeCache at runtime

In our runtime debuging it has proven very helpful to have a way to
inspect the internal typecache in order to debug issues.  Often we have had developers doing things that cause lots of unique cachekeys to be generate within the modulescope.  I made this change in our production envrionment so we could get a feel for the contents of the cached proxies inside of the scope and it was very useful.

I wrote unit tests and verified that everything still builds fine with the build script.  This is my first pull request so be gentle :)