Fix on PackageInstaller and ProviderCreator

Hello,
I find two errors :

* in ProviderCreator, the "this" for calling of createValidJsonWithSlashe()
* in PackageInstaller, because var_export() returns "array (", and we need "array("