Extend update.attributes() subroutine to easily modify subobject
of the document.

Its done by passing tuple keys to the update routine.
Add a testcase for this.