Add CutPayload method that returns RawObject's copy with untethered empty
payload. Changing the result payload doesn't affect source object. Changing
the other fields affects source object.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
In previous implementation RawObject constructor initialized internal v2
Object structure recursively so that further you can directly set the values
of nested fields. This caused the object created by constructor New to be
different from the object created from the empty object v2.
Remove recursive initialization of v2 Object from New and NewRaw
constructors. Make setters to initialize nested structures on demand.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>