Fix TH1::Merge for merging histograms with buffer with histogram with limits
Add tests for merging histogram with buffer in stressHistogram and add tests for case with empty histogram
Fix case of merging TProfile with different limits when the first profile is empty
(the fix applied previously for bug #5509 was not applied to the TProfile)

Improve also tests for 2D and 3D profile