Fix compilation breaks by using collection.add instead of collection replace
Patching to get DataContractJsonSerializer working