XSD: don't add entity to dict if it has a "ref" attribute.
Update TODO.