ScriptedJsonPatcher now uses previously-updated doc if a patch is for a doc that was updated in the same batch.
Making sure that we are running outside of the ambient transaction
Merge branch 'scripted-index-multi-update' of https://github.com/gareththackeray/ravendb