Having an array which is not instance of Array object is resulting in packing the value as object.
Here is inspection of the value from IDE:

And packed result is:

it is probably due to some clone operation before packing, but still array check should work ok.
I will submit a PR with the correct check.