BUGS: Solving (apparently) two subtle bugs in new PIT and ContentStore implementations

The first bug is related to erase in multiset container. Instead of
erasing using iterator, a key-based erase was used.  In multiset that
caused several unexpected effects (erasure or multiple items instead of
one).

Another bug is related to random policy for trie-based container.
Similar to previously discovered bug with time index (previous commit),
random policy was using boost::intrusive::set, instead of multiset,
which in some rare cases (multiple items in container and generation of
the same random number) caused unexpected behavior and (eventually)
crashes.  Change to multiset solves the problem.

fixes #5
2 files changed