I realise Darktable is a separate program to RawTherapee, but wondered if you might want to try taking the demosaiced/processed result from RT into it to try its spot removal. DT offers lens profile-based vignetting correction, but not flat-field-based as far as I know.