cpp: fix traits in types formatters
cmake: bump sprint version
formatters: use static methods in traits