allow mixing lua_State* and regular arguments
as long as the lua_State* is the last argument.