Fix negative start/end values for array/slice

Fixes #168.