histfactory: set hist name when setting hist
Merge pull request #418 from ndawe/master

[MRG] histfactory: set hist name when setting hist