Optimize Tools.modData in nested mods

Now it will check whether the datum is the same as its homologous in its parent mod rather than in the base mod.