migrate old index mapping to new array type mapping

is this tested? what if first level works but second not and path has 4 items