Standalone reproducible example for debugging saving and restoring objects with attributes.