Add ability to store metadata in HDF5 files from dictionaries