Add uniq option for dep sorting. Expand the test to validate comments.