Changed to const static in TypeWithDict

Changed the function local static to const by using C++11 initializer list to set the values at construction time.
Merge pull request #1395 from Dr15Jones/useConstStaticInTypeWithDict

Multithreading fixes -- Changed to const static in TypeWithDict