Check for duplicated arguments in declarations (closes #9).