fixes #3858 serialization of value moved from abstract record to data/ob...

...ject records, added serializtion test for cache