Add accessors to allow removing #define private.
Add some accessors to allow removing non-standard #define private in persistification code.
Once this is merged, please update the tag we're using in master to match.
This will allow fixing the warnings we get in TFPersistification in the clang build.