Initial work to auto-detect column types.