Fixed (backported Array.to_h) for 2.0.0.