encode/decode tuple as list in to_dict/from_dict in order to avoid Mongo conversion problems (tuple->String encoding)