Fix up some unsupported slicing operations.

Includes tests.