Fix slicing issues
In addition:
 * unify slicing
 * performance improvements, especially for string slicing
Merge pull request #218 from undingen/fix_slice

Fix slicing issues