Added models conversion to dict and serialization into JSON and PICKLE including References and ReferenceSet