[backend][assetmodel] Add defaultFormat method

This method simplify the code to retrive the format
to put as default value when, for example, creating
a new input or output for an algorithm as well as
values for tests.
4 jobs for 246_fix_dataformat_list_for_protocol_templates in 11 minutes and 51 seconds