classic_compatible mode fix again: BeanModel was TemplateScalarModel back then. Trying to emulate that at some key points.