Bring in the big test from that one CPython bug.

Takes 20s right now on this laptop. No idea how long the dict equivalent
takes, and I really don't want to find out.
Add a bunch more stuff.
Well, that more or less works. Sort of.