Replace `dict` with `orddict` in the map and set

The small perf gain from using orddict in small sets/maps is
dwarfed by the cost of larger sets/maps. Until we have something
adaptive like hashdict, dict makes the most sense. See graphs in
PR for details.