Slicing and indexing now works. Other bug fixes.