Avoid using hash-tables in V8

When using `delete` objects go into slow-mode (hash tables in V8), to avoid this, we first create null references, and then create shallow copy of object to prevent endless object growth