Zero-metallicity stars II. Evolution of very massive objects with mass loss