When you run the attached QML example file, you'll see two outputs logged by the code that I added manually to the attached js file at line 3118. The second logging will have the "corrupt" object. Line 5225 seems like the culprit.
The problem doesn't present when the library is used in browsers or nodejs.
You can see the original issue here: