some refactoring for data/parameter/preset (de)serialisation