Fix loop dataformat export
This merge request fixes handling of the dataformat objects in the algorithm.
This allows to properly export all dataformats used be it in input, outputs or loop communication.
Tests have been update to ensure that different dataformats are used for these various elements.