Change method for merging environment config for packages

Right now packages' configurations are merged using `array_merge` instead of `mergeEnvironment`. This is not what I would expect.

If there is a specific reason for this, I would love the discussion, but this does not break any unit tests (perhaps that is a separate issue).