intmap_are_equal should test for pointer equality after following redirects, not before, because you can have a redirect to an empty item
introducing THE TEST MACHINE. It's a stack machine that runs tests. For science
more things to clean