rewrite merge_result with nInserted, nUpdated, nUpserted, nDeleted

RUBY-676