Use insertion-ordered set for [bag].