Make RecordKeeper::addClass/addDef take unique_ptrs instead of creating one internally.