Support specifying model class with :klass option.