Hijack __dict__ for JSONDocument and its subclasses

We'll see how good an idea this was...