fix to generate baseset correctly without optional fields when opened by stats files
fix to do dump stats files with target object and auto_field property