Added Tests for cycles in composite references

Issue with Self-reference test, most likely the source of issues with
following tests.
Merge branch 'beiber' of https://github.com/ecologylab/simplJava into beiber