fixing the merging behavior for Int, Double and String. Needed to run over skims
support multithreading also for int, float and string
Merged refs/pull/4060/head from repository cms-sw
extend the support for int, float, string
Merge pull request #4086 from deguio/fixDQMStoreForNonRootObj

support multithreading also for int, float and string