Fix array_merge when merging a group with just numbers [tracker #1823]