fix multiple (historical) issues with toJson/fromFile functions in HistoXd classes
Work done with @elebouli for ITk Strips Initially in !432 (closed) split on @wittgen 's request.
Work done with @elebouli for ITk Strips Initially in !432 (closed) split on @wittgen 's request.