Use a LinkedHashSet rather than a HashSet for uniqe lists to preserve order
Merge pull request #160 from cmaron/master

Use a LinkedHashSet rather than a HashSet for uniqe lists to preserve order

Closes #159.