ivy: reduction on non-vectors