Squashed minor commits to fix InvalidTransactionId error in zmq_app.

Fixed bug in return_list decorator.

Minor silly errors. Fixed them.

Fixed bug in send docs changed at source to target within sync_exchange.

Fixed bug causing InvalidTransactionId error on sending the second changed doc from source to target.