Adding an additional test for circular references
Adding more in memory fixes, and the Sql Command merges