Fix histogramdd treatment of events at rightmost binedge

Fixes Github issue #4266
Merge pull request #4284 from robquant/histogramdd_rightmost_binedge

Closes issue #4266, fixes histogramdd treatment of events at rightmost binedge