Fixed SessionSettings replacing existing setting

Another bug in session settings: replacing an existing setting incorrectly sets its new range to end after 1 line, whereas it should set it to end after the number of `newLines` that the replacing setting has.
Currently, this messes up the state of that `Def.Setting` and will corrupt the file if you choose to write the same setting again without first `reload`ing.