fix duplicate-saving of multiply-referenced blocks, leading to double-free crashes in Blender