Fix: Avoid mutating node.range in max-len (fixes #1224)