Add a method that makes a deep copy of all fields and resets size/hash caches. Close #3288 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This way we can use it in scripts and cli.
See neo-project/neo#1958.