https://github.com/nuvolabase/orientdb/pull/1406

Fix https://github.com/nuvolabase/orientdb/pull/1406 which failed in Unittest.
2 Fixes : 
1) Remove set className to previous for loop. Otherwise if in request JSON string, if @class is not first object. In following loop, all fields type which before @class will always be null.
2) If value instanceof ODocument and type is LINK, then save object.

Passed unit test