Pulling a fix to Document::rewind() from 1.0-beta