support .items() and __iter__ on _data. support dynamic classes
fix tests to strict nature of documents