Add `array/collect` function

See #68.