Update out_dynamodb.rb

bug fixed for duplicated elements within the batch