Revert "Refactoring : using Hash::merge() instead of array_merge (or array_merge_recursive)"

This reverts commit 29220e2816b2c1e9a04e9df7341b9c3e08931d8f.
Fix several notices displayed on frontend.