Correctly generate classnames for plugins as well.

Refs #3791