improve constraints on ReferenceText and GlossaryItems