Remove expectations that argument is an array

This allows use to pass in array-like objects too.