MWLua refactoring
- Extract some code from mwlua/object to mwworld. New class
SafePtr
. Needed for #7055. - Move
std::variant<SelfObject*, LObject, GObject>
frommwlua/stats.cpp
to the new filemwlua/objectvariant.hpp
. Can be reused in !2765 (closed).