fix implementation of array_concat and testcase