modules/tmx: added $T_reply_flags pv and fixed bug in t_reuse_branch()