Saving type info for elements of IEnumerable<object> and Dictionary<object,object>.