Added QuerySet slicing and index support, added tests, fixed bugs