Refactor dump_array to return string
Print both internal and translated results