Change multiple GenStat() functions to be static
Add ujson4c