dumps : fix type checking for rootValue / attributes

Now, setting attributes on root element for dict subclassed objects
(collections.OrderedDict for example) is possible. :)