map and register performance optimizations

Map is one of the most run functions. This update makes it roughly 4 times faster (40ms -> 10ms of running time in my sample).

Also some optimizations of regsiter included as well.

I'm not too experienced with JS perf work.. feedback welcome for other ideas both on this project and ES6 Module Loader.