Fix another round of squirrel coverity issues