`array_replace_recursive` can sometimes mutate its params if references are nested within. This differs from the PHP 5 behavior.