Downcase field types and fix various typos