support circular structures
Merge pull request #3 from juliangruber/circular

support circular structures