Bug fix + test.  Make splitAt() work with negative indices.