Add helper for Python pickling of PairQuantity.

Very, very private function, almost never to be used.