After second deserialization for example it doubles counts like for example there were 10 items Item.all.count #=> 10 and after deserialization it's 20. And every item is with the same ids.
Why it can be?
P.S. it seems there is no dup method like in activerecord to create shallow copy of object. Is it needed in library?