`$query` is a string, so this line produces an "Illegal string offset 'handler'" error.

Removing the line doesn't break anything since the `SUBVERSION` property isn't referenced anywhere else
Fix `is_array` casing
Fix an "Array to string conversion" notice when `$v` is an array. Output is unchanged.
Merge pull request #3 from theodorejb/fix-minor-errors

Fix "Array to string conversion" and "Illegal string offset" errors. Output is unchanged. (thanks to @theodorejb)