make cachedrelations default for toJSON