Misc fixes

#172 
Small PR to make sure I did all the small stuff correctly
- Virtual dtors
- Old copy of xml before committing (#176 )
- Remove unnecessary task member variable in SerializationOperation
Oops. Anw, while we're at it, what do you mean that it "is not necessarily the best thing to do"? Is it because I forgot to copy the `document` earlier?