SigDistHist: small fixes and tewaks

* clip lines to histogram area (line-cap edges)
* fix average line display check