A test case should be added to ensure it works for ``sub(x, 1:2:n)``.