Change method for merging environment config for packages

Right now packages' config is 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).