unique_ptr-ify PathDiagnosticPiece ownership