If people copies the current behavior in JLayoutFile it can led to unexpected results. And in fact is merging data twice. That's not causing an issue because array_merge will replace the data with the same data but is better to avoid it.
I also changed setDebug() method so it's chainable
@phproberto Can this be tested any how?