add spec for array coercion
Merge pull request #1708 from tduehr/to_a

add spec for array coercion