validate ID refs in HEAD and DEPREL