Scaladoc: the value of an id attribute must be unique within a document

The value of an id attribute must be unique, according to HTML spec.
Merge pull request #3928 from kzys/dup-html-ids

Scaladoc: the value of an id attribute must be unique within a document