Refactor array concatenation
Merge pull request #1187 from stephankaag/refactor_array_concatenation

Refactor array concatenation