Update to support returning arrays in dynamo. Patch up the tests a bit, to
make them a bit nicer. They still aren't proper though :S