histfactory: write_measurement improvements
Merge pull request #440 from ndawe/master

[MRG] histfactory: write_measurement improvements