Add *_safe wrappers for destroy and free type functions.