Fix TableRegistry::get() and plugin classnames.

Fix issues around using `className` option with Plugin.Class forms. Also fix registry key issues where get('Plugin.Comments') and get('Comments') would result in different instances.

Fixes #3425