Move replace and swap to std::mem. Get rid of std::util

Closes #7556.

Also move ``std::util::Void`` to ``std::any::Void``. It makes more sense to me.