in ReadDocument in hread and hreadDoc a call of canonicalizeAllNodes added