Remove assumption of `array` method by specs.

Instead, implement `elements_in` to return a Ruby array.