Lots of type checks in the data model. This should help pinpoint the type errors in the plugins.