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
Merge pull request #3430 from cakephp/issue-3425

Fix TableRegistry::get() and plugin classnames.