Fix to Iterator for std::set - make sure the dereferenced type returned from next() has a const.