Detect if a component gets updated or installed freshly and pass that $installType to _applyFixes(). Also removed a lot of $type variables, since they had the installation type of Twentronix Installer and not of the installed extensions.
Update, improve and fix  _applyFixes() and its childfunctions. Also improve uninstallInstaller()
Use array for $ext, 'element' for ext_name (e.g. com_foo) and name for 'name'. Also more improvements.
Fixed element for plugins (plugins don't have 'plg_' prefix)