GetRev makes an immutable copy of doc revision when processing attachments

The revision cache returns mutable revision bodies, this leads to side effects between calls for the same doc revision.

fixes Feature/issue 447