Fix splice arguments and `socket.rooms` value update in `socket.leaveAll`.

Hat tip @Marreck
Merge pull request #1700 from rase-/fix/rooms

Fix splice arguments and `socket.rooms` value update in `socket.leaveAll`