Uncomment test.

I missed this earlier, because I'm a doofus.
Re-assign $db after beforeSave.

This allows model/behavior methods to change the datasource in the
beforeSave callback. If you use drivers from different SQL platforms
things will go very poorly.

Fixes #3606
No use of type key in ClassRegistry::init()
Merge pull request #1242 from sime/noTypeInClassRegistryInit-master

No use of type key in ClassRegistry::init()
Remove leftover param that is now wrongly triggering "strict"