Replaced array_merge with array_merge_recursive

issue #2443