INT-3035 Fix ExponentialMovingAverageRate 'window'

'window' constructor arg was not used.

Add test.
Merge pull request #812 from garyrussell/INT-3035

* INT-3035: Fix ExponentialMovingAverageRate 'window'