Upgraded RMS to a weighted aggregator. Fixes #788.
Merge pull request #808 from ajdawson/rms-weights

Upgraded RMS to a weighted aggregator.