Circular references

- Convenience method for removing circular references
- Converting RID foreign keys to strings