add spec for array coercion

test for https://github.com/jruby/jruby/pull/1673