Processors that detect RMS do in fact calculate "true" RMS, which takes into account the contribution of harmonics. RMS for a complex waveform is, by definition, the sum of the RMS values of each harmonic.
reaComp comes to mind as one compressor with RMS detection, and features a variable RMS window. The free TDR Feeback Compressor also uses RMS detection, IIRC, as does Stillwell's Bombardier. Ozone's multiband compressor is switchable between peak and RMS.
But my favorite compressor - for everything - is FabFilter's Pro-C. It's not obvious looking at it, but it does feature an RMS-detecting mode; they just label it "classic style".
EDIT: just thought of another one with switchable peak/rms detection - Klanghelm's
DC8C. It's cheap and has about every bell 'n whistle you could want, including a unique S-shaped release curve that's supposed to help make it more transparent.