Modernize dumpRDF script

- Fix bug 35679
- General script hygiene
- `SMWExportController::printAll` is now protected, the public interface
`printAllToOutput` and `printAllToFile` are two dedicated methods to do
only things they are responsible for
- Add `DumpRdfMaintenanceRegressionTest`