SliceLayer: post-rebase fixes, cleanup, etc. (some from changes
suggested by @sguada).  Test for both num & channels in forward &
backward.