fixed ib counters and added a hack to the pickler for spurious rollover of 64 bit counters