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.