port to standard C++ smart pointers where possible

3 jobs for !82 with work/std-ptr in 1 minute and 44 seconds (queued for 1 second)
latest merge request