fix: The return value of `luaval_to_dictionary` was wrong and remove some warning