Merge pull request #524 from ndawe/master

[MRG] fix failing histogram tests at the head of the ROOT 5.34 branch
preserve branch ordering when creating a buffer