Add spec ensuring Enumerable#sort works even if #to_a returns a frozen Array