OFCountedSet: More thorough range check.
Add support for BinaryPack.