api: make buffer_{get,set}_slice automatically assume `include_end`

This is for compatibility with python-vim interface: When passing an end index
with a value higher than the last index, assume the `include_end` flag