Fix nested group prefixes.

If you nested two groups that both had prefixes, I got a PHP error because the use of `array_merge_recursive` was causing the prefix to be turned into an array instead of concatenated. Fixed that here.

There's probably a simpler way - suggestions anybody?