Fixing up a couple more missed classes that were moved.
Merge branch 'staging' of github.com:joomla/joomla-framework into staging
Code cleanup based on PhpStorm inspector
Don't clone the db property. Closes #137 and fixes joomla/joomla-platform#1167
Adding UT to confirm fix.