there's no such thing as Array#to_h

(cherry picked from commit 780bd84bc17f55b0ece1d86a2b224f0340495c73)