Ancient divergence of a complex family of immune-type receptor genes