fix array_to_string_conversion bugs in data_chaining