fix global static initialization issues with sim/tool command categories
replace reference to command category with function call that returns
reference to function-local static
provide definition of static const variable
explicitly instantiate some template functions to guarantee symbol defined
more explicit template instantiations to guarantee symbol definitions