Add extra boolean parameter (def_set) to xml_text::as_XXX functions to a...

...llow checking of whether default value is used or not.