Fix: Circular reference can produce infinite loop

Issue#: CODE-2504


git-svn-id: svn+ssh://svn.code.sf.net/p/pcgen/code/Trunk@23221 ef53c05b-3124-4d59-ae7d-fe3273f42be7