Flow of inelastic and viscoelastic fluids past a sphere