fix for GPMONGODB-265 "Arrays are not saved properly"