check that description* parameters have the right type

Fixes #2891.