dynamodb: Fix broken dynamodb.buildComparisons()

This PR fixes dynamodb.buildComparision() to conform [the latest API specification](http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-KeyConditions).