Fix LuaThread.resume messing up the root coroutine
Allow popping of frames, since pushing is allowed
Implemented coroutine.wrap