More loop protection in "origin" functions
Truth records can have loops in them - and these days, they seem to have lots of loops in them. This adds loop protection to a couple of the standard offenders in terms of recursion that gets out of control.
Should address AGENE-2270 and follows on from !70131 (merged)
FYI @delsart