Analyzer: hdf5 serialization -> Fix bug + code refactoring