let flatten_multi_dim_array = ref false