Weapon switching has, since launch caused all sorts of issues that should now be resolved. A list of things that should no longer be a problem.
Switching would cause you to very, very slowly sink into the ground and potentially fall through the world.
At the exact moment that the weapon switches, visibility queries would also freak out and cause enemies to suddenly spot you when they really shouldn't be able to. There may be something else causing this but the majority of cases will have been from this bug
Most recently, because the bug injected a NaN into the Bullet collision world, it could even cause the game to crash!
Big thanks to Cos and Mephiles on the steam forums for reporting this. I didn't actually learn anything from the reports that I didn't already know, I've been trying to squash this bug since before launch and there are even mechanics present to work around it! But simply looking at it again led me to uncovering the true underlying problem.