Typing in the code as I follow along, I'm always introducing a bunch of bugs, especially in the collision detection.
This one however I can reproduce in the original code as well. If you slide up and down a wall, you can move into the wall:
*apologies I seem unable to post the image or a link :(