Added function to test for loops within the header structure.
Authored by: gumpu 2008-06-12
Parent: [r759]
Child: [r761]