For example, say I have a Kecleon, it gets hit with a Fighting-type move and miraculously survives. If I switch it out of battle and then later bring it back out, will it remain a Fighting-type Pokémon upon switching in or will it go back to its default Normal type?
it would go back to a normal type.
Source:Experience with soak