[tstr] move tstr_list to separate file
[tstr] move digit_value() to tp_misc.h