Simplify data gather
Created by: dominikwerder
Description of work
Reduce duplication of code: To prepare writing to HDF, we often have to gather n-dimensional json arrays into a buffer suitable for the call to h5cpp. Previously, we had some code duplication for the cases of numerical and string data. This is now unified.
Acceptance Criteria
Tests should pass as before.