Revert allowing string in Dict.from_json and correct json parsing from attributes

Test with dict serialized as child nodes wouldn't harm here.