Fix copy so it doesn't accidentally find circular references

[closes #3]