Merge pull request #417 from ndawe/master

fix new TypeError from NumPy 1.7.1
Merge pull request #418 from ndawe/master

[MRG] histfactory: set hist name when setting hist