DocumentPersister::prepareQueryOrNewObj() method is now used instead of DocumentPersister::prepareSubQuery().

DocumentPersister::convertTypes() was removed and now PHP type to database value conversion happens in the same query iteration in the DocumentPersister::prepareQueryOrNewObj().