tests,tools: Reimplement 'mk-tdata' in Scheme.