[ET Trac] #2701: Use `std::shared_ptr` in Piraha