Support passing lists that have to be flattened in f(x) of the API type