Cowriter Chris Hayward finds most real-life robots terrifying. But if the future looks like the film’s sentient droid, he says, “we’ll be fine.”