next() made @safe, because it is called from TypeInfo_AssociativeArray.toString(), and actually it is safe.
flags() made @safe, just because it is safe. Otherwise this change is not necessary for this particular PR.