When you spectate a mob with different vision (creeper, Enderman, Spider) quit game, and go in to the world, you still have the vision, and can change gamemodes. you go back to normal vision when you go to f5 mode.
Linked issues
duplicates 1
Comments

The latter issue is intended, see MC-46563