Fixes bug in merging configuration arrays