Make Document.Ranges immutable.