Fixed a subtle but fatal bug in PairingIPQueue, and added proper, randomized testing for it.

Also renamed and rearranged the (i)pqueue modules to be more consistent with other similar parts of cmlib.
Renamed pqueue-imperative* to ipqueue*