Avoid generating invalid html with duplicated id's

Since this same id is used for the collection tag, using it also for the
label (with nested style) causes a duplicated id.
Add tests to make sure that nested radian style do not generate invalid html
Merge pull request #1007 from rcillo/rd-fix-invalid-html

Avoid generating invalid html with duplicated id's