fix bug that was introduced with recent addition of array based td formats

that only with that new which only works for args of type dict, while for backwards compatibility we need to also support args in e.g. type list.