Unloading of functions, enums, globals (ROOT-5701).
Must not override user-provided malloc() (ROOT-6125).