parser: Ensure each type in declaration lists of typereferences is unique.
test: Add bugs 18 testing decl lists of TRs.