removed unnecessary (and now invalid) assertions from test_ast for slice
simplified `apply` in compiler to use `rest` instead of `slice` or `cut`

previously `slice` was used to pass other arguments to a given function, but this became erroneous when `slice` was removed.
options were either replace with `cut` or replace with `rest`.  `rest` is the slightly simpler of the two, having only one argument