lua: fix regressions in operator overloading caused by the refcounting patch, also...