In an interview with Daniel Radcliffe, Rowling said that she highly contemplated killing off Ron but then decided against it. We can hear the Potterhead backlash just thinking about it.
Dumbledore silently casted the human-presence-revealing spell, homenum revelio, to detect Harry under his invisibility cloak.