Bug: root XML attributes are not serialized

Command parameters can not be serialized as attributes of root XML node.
Versions 3.7.1-3.8.0 are affected (since request XmlVisitor rewrite).