Split up writeValue in BlobWriter to WriteKey and WriteValue to make dots_kernel easier to implement.