List of dict marshalling

This branch should allow proper marshalling of list of dicts. See issue #165.
Not sure this is the perfect modification but at least the patch is small and the unittests still pass.