Fix imports.
Prohibit null items in implicit collection. Prohibit ambiguous itemName in implicit collections.
Prohibit ambiguous attributes and elements.