Merge pull request #276 from ndawe/master

Fix range checking in Hist[]