Fix a bug and drop unnecessary "inline".
Add a class LuaState, a wrapper for lua_State.
Test LuaState