An OrderedSet is a mutable data structure that is a hybrid of a list
and a set.
It remembers the order of its entries, and every entry has an index
number that can be looked up.
