added sample for saving an collection
fix for mapping data types