Add serialize loop handling to prevent crashing for circular loops
Merge pull request #753 from pcmichaels/v3.1

Add serialize to JSON Serializer loop handling to prevent crashing for self referencing objects