Correct slicing behavior to be consistent with lists.

This fixes issue 10; we now have our own pure Python slice indices function,
which supports longs unlike the one included with CPython 2.7.
Use our own copy of xrange that can handle longs, when necessary.

This is a simple fix for issue 9.
Merge branch 'fix-big-slicing'