Fix a bug with exists flag, don't interpret it into true or false.

Don't send undefined values as part of items.
Fix a bug with batch_write_item and encoding the keys of delete and put requests.