In my case, I had to remove column by column until I found that the issue goes away if I remove a calculated column that I created using a feature (using CAML), and the XML definition of the column was
missing a critical attribute - the ResultType attribue. Adding that attribute to my XML solved the problem.