use PathHelper::getPathDepth()
improved multivalue handling in Client::propsToXML()
cs tweaks