[lua] auto reset of metamethods when exporting table

How is this a bug report, or even a bug in the first place?

Again, this has been discussed many times and nothing implies that serialization somehow retains metatables, and implementing any such functionality is non-trivial (as other scripting runtimes would not even know the concept of ‘metatables’).

One of these posts also discusses an easy workaround to ‘export’ a class-like object using wrappers/closures, and it would be possible fine to make code to automate such exports.

I’ll in fact directly cite a relevant part from a post nearby: