Track arrays/objects during (un)serialization in Cache methods (Issue #382)