Autoload missing classes for serialized columns.

Fixes #1585.