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