Fixes in Buffer.__getslice__ (pointed out by Freddie Witherden)