re2: three minor bug fixes

Found during testing inside Google.

Change-Id: I93f824fd828b93b214c62b69b93d58f841b83bf1
Reviewed-on: https://code-review.googlesource.com/1593
Reviewed-by: Russ Cox <rsc@swtch.com>