Could someone kindly review and maybe merge these patches, if they are ok?
Or is this not the right place to propose patches?
From the Lua FAQ [1]:
> Do you accept patches?
>
> We encourage discussions based on tested code solutions for problems and enhancements, but we never incorporate third-party code verbatim. We always try to understand the issue and the proposed solution and then, if we choose to address the issue, we provide our own code. All code in Lua is written by us. See also the previous question.