util: add a bit of syntactic sugar for saving/restoring errno
macro: add macro for precisely determining length of decimal string formatting of a numeric type
update TODO