[CHEF-3817] Fix dedupe in cookbook_order by returning dependencies as symbols.

And add matching spec.