simplified cursor api (no more Range/Scan difference)

fixed a bug in Slice