apiGenerator: fix legacy api calls with [{},] and {{},} where all containers inside should be converted to string