This gigatrees also does sanity check (different name). Includes a tone of stuff. I’m guilty of marrying children to parents or having them born after their parents die. Well, maybe I shouldn’t take full blame, I did inherit file from someone. (The checks might interest you.)
I know. It’s the inspiration for kiwitrees “Sanity checker” module – see the FAQ page.