Fix hbase client's write bug in debug mode.

Hbase client has a bug to write all values as empty byte arrays in debug
mode. It is caused by an illegal use of ByteIterator. Values returned
from toString() or toArray() should be cached if they are needed later.