Specs and implementation of Enumerable#to_h, Array#to_h