Refactor to remove references to Rc::get_mut_unchecked, since that doesn't look like it'll be stabilized anytime soon