Allow DynamoDB hash_key to be passed as part of the value

This assumes that value is a hash and that a hash_key attribute has been configured.