bugfix in BaseDocument.to_dict, we should pass keep_id to dynamic fields