I also have a problem with Golisopod. I was battling, and iron barbs brought it below half health, but it didn't switch out. I forgot to save that battle, but here is one I recreated with toxic.
I used a guest and a made up account for both teams.
http://replay.pokemonshowdown.com/gen7ou-493742336