spacesaving: fix a bug in eviction

We reassinged the bucket numbers _after_ items were swapped,
not before.