minor cleanups to SortedBag<>