added test cases for exporting collection items like dict, list

Test cases for issue #532, which has already been fixed some time ago.