Code cleanup
Fix intermittent bug due to structuremap injecting same instance of message dispatcher (dictionary inside not threadsafe).
Should review TypeUtils as well