Fixed copy method in Document to work with declared fields from
superclass.