- document is now an object
- the common/object toArray method now includes the object's type