fix for Array collection option

or
Hash[(0...collection.size).zip collection]