Finally finalized the final version of PersistentObject!
Tested with script and with actual data.
Still need to make some sample tests, maybe a script that deletes all records and looks at reference counts...