Fix coercion of arrays in Kernel#Array and Array#product.

Fixes #1961.
Fixes #1962.