Add 'ignoreDuplicateAttributes' option

closes #86