It also includes small changes to wxlua.cpp, wxldserv.cpp and wxlsock.cpp to get debugging working when using wxLua from a dll, such as in the samples editor.wx.lua.
I did consider wrapping every call to :Connect but it was an interesting problem for me to see if it could work otherwise.