Fixes broken doScaleRewardToTarget

Reward can now be set to give maximal reward to hold times closest to delayTimeMs and minimum reward to trials at the start and end of the reward window.