Add support for set of arbitrary objects for DynamoDB

Highly inspired by
https://forums.aws.amazon.com/thread.jspa?messageID=377129&#377140
See also  https://forums.aws.amazon.com/thread.jspa?threadID=116225