(1) Handle the xsd:anySimpleType datatype
(2) fix some issues with the DVT