Fix bug in FlagSet::swap