dynamodb: Fix broken dynamodb.buildComparisons()

See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-KeyConditions