This should improve the tests by quite a lot:
* assertions get formatted automatically
* many fewer doubly / triply nested eval strings
* IDE support for code formatting, syntax highlighting
(the IDEs are pretty confused about other stuff but still...)
Also, messing around with these type conversions tests is a
good way to find lots of bugs, cf my other PRs from 2022-05-27.