What is the use case for having 2 configurations array ? the settings by type should be enough. more over a simple array_merge cannot solve all merge problems. It will be less errors prone to have only one configuration array. 

Another question, why do you have a ``bundle`` in the variable name.