Fix Scrutinizer report

- array(device=...legend={$legend}") of type array<integer,string,..."string"}> is not a sub-type of string.
- $sep of type string is not a sub-type of array.