Fixed bug in the way constraints were parsed from duties in XML; added missing parties in XML parsing, too