Fix reference counts for test_long_and_overflow.