Allow preventing queue from containing duplicates

Closes #8