For tcltest, selected modernizations and style improvements from Patrick Fradin.