implement ordering of mpz

also fix bug in destruction logic