utils: add formating variants of assert() and error()
utils: add .sorted_keys() helper