improved serialization interation with the document.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop