fixed type handling in csv serialization, fixed document type convertion. issue #2820
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop