array-like objects without a length shouldn't be treated as array-like

Fixes #50