Fix warning in Slider when stepSize is set

Also adding a new test for stepSize

Task-number: QTBUG-31441

Change-Id: Ib8d9cc2188b5f73b6b0ac866ade1a7edb1d662b7
Reviewed-by: Caroline Chao <caroline.chao@digia.com>