also update corpus_ref in _component and other schema cleanups