fix default metadata logic so that --auto works again with the right types