This is mostly a simple lexical search+replace but the absence of operator< for std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence and ExportPortChannel.
PBD::stacktrace() is not used nor needed by default. It should be used sparingly.