OFCountedSet: Improve deserialization

This turns wrong values due to integer overflows or underflows into errors.