test: Fix arrayimpl.allclose() for non-interable arguments